﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Ninject.Modules;
using ERP.Manager.Core;

namespace ERP.Manager.BusinessServices
{
    public class ERPManagerServiceBindingModule:NinjectModule
    {
        public override void Load()
        {
            Bind<UserinfoService>().ToSelf().InSingletonScope();
            Bind<ISessionProvider>().To<DefaultSessionProvider>().InSingletonScope();
            Bind<LoginService>().ToSelf().InSingletonScope();
            Bind<DepartmentService>().ToSelf().InRequestScope();
            Bind<WorkinfoService>().ToSelf().InRequestScope();
            Bind<MessageinfoService>().ToSelf().InSingletonScope();
            Bind<WorkBloginfoService>().ToSelf().InSingletonScope();
            Bind<MscallerinfoService>().ToSelf().InSingletonScope();
            Bind<ECS_attributeinfoService>().ToSelf().InSingletonScope();
            Bind<ECS_brandinfoService>().ToSelf().InSingletonScope();
            Bind<ECS_categoryinfoService>().ToSelf().InSingletonScope();
            Bind<ECS_goods_attrinfoService>().ToSelf().InSingletonScope();
            Bind<ECS_goods_typeinfoService>().ToSelf().InSingletonScope();
            Bind<ECS_goodsinfoService>().ToSelf().InSingletonScope();
            Bind<ECS_sellstockinfoService>().ToSelf().InSingletonScope();
        }
    }
}
